Automated Test Case Generation Considering Object States in Object-Oriented Programming
نویسندگان
چکیده
Testing for object-oriented programs is complicated and burdensome. One reason is the difficulty associated with generating method sequences that create instances and change object states to achieve high branch coverage. Automated test generation using mixed static and dynamic analysis is not only an effective approach to save time and reduce the burden of testing, but also an efficient way to find bugs. Seeker is an implementation for automated test generation that includes method sequences using static and dynamic analysis. However, when we need to change several values of variables to cover branches, the technique cannot generate method sequences that achieve all of the desired object states. In this paper, we extend the technique for automated test generation when multiple object states are required for the coverage of more complicated branches. Our approach identifies all variables that are involved in uncovered branches and evaluates method sequences according to a fitness function. Then we apply a retrieval strategy to suppress combinatorial explosion. Our results show that the proposed approach achieves higher branch coverage than that used in a previous study and also suggest that the effectiveness of the proposed approach tends to vary according to the specific characteristics of different projects.
منابع مشابه
Declarative Semantics in Object-Oriented Software Development - A Taxonomy and Survey
One of the modern paradigms to develop an application is object oriented analysis and design. In this paradigm, there are several objects and each object plays some specific roles in applications. In an application, we must distinguish between procedural semantics and declarative semantics for their implementation in a specific programming language. For the procedural semantics, we can write a ...
متن کاملSequential Pattern Mining Based Test Case Regeneration
Automated test generation for object-oriented programs is an essential and yet a difficult task. Many automated test generation approaches produce test cases entirely from the program under test, without considering useful information from already created test cases. This paper presents an approach to regenerate test cases via exploiting frequently-used method call sequences from test repositor...
متن کاملAutomated Test Case Generation from IFAD VDM++ Specifications
Most of the current research on automatic generation of test cases from formal specifications has been directed towards non object-oriented formal specifications. While objectoriented paradigm is the most widely accepted methodology for software development, generation of test cases from object-oriented formal specifications is still a relatively unexplored area. In this paper, we present a nov...
متن کاملOn Attributes of Objects in Object-Oriented Software Analysis
One of the modern paradigms to develop a system is object oriented analysis and design. In this paradigm, there are several objects and each object plays some specific roles. There is a sequence of activities to develop an analysis model. In the first step, we work in developing an initial use case model. Then in the second step, they identify a number of concepts and build a glossary of partic...
متن کاملModelsaz: An Object-Oriented Computer-Aided Modeling Environment
Modeling and simulation of processing plants are widely used in industry. Construction of a mathematical model for a plant is a time-consuming and error-prone task. In light of extensive advancements in computer science (both hardware and software), computers are becoming a necessary instrument in industrial activities. Many software tools for modeling, simulation and optimization of proces...
متن کامل